<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript">
        window.onload=function(){
            let xhr = new XMLHttpRequest()
            let method = "GET"
            let url = "http://localhost:8087/index/show"
            xhr.onreadystatechange = function(){
                if(xhr.readyState ===4){
                    if(xhr.status===200){
                        let data = JSON.parse(xhr.responseText)
                        // console.log("id=",data[0].id)
                        console.log(data)
                    }
                }
            }
            xhr.open(method,url,true)
            xhr.send(null)
        }
    </script>
</head>
<body>


</body>
</html>